@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #8a2be2;
    --secondary-color: #00bfff;
    --tertiary-color: #ff1493;
    --background-color: #f0f2f5;
    --card-color: #ffffff;
    --text-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --highlight-color: rgba(138, 43, 226, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 流光溢彩效果的标题 */
.glass-header {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(138, 43, 226, 0.3),
        rgba(0, 191, 255, 0.3),
        rgba(255, 20, 147, 0.3),
        rgba(138, 43, 226, 0.3)
    );
    z-index: -1;
    animation: glassAnimation 10s linear infinite;
    opacity: 0.5;
}

@keyframes glassAnimation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.glass-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textGradient 5s ease infinite;
    background-size: 300% 300%;
}

@keyframes textGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.glass-header p {
    font-size: 1.2rem;
    color: #666;
}

/* 轻拟态搜索框 */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    background: var(--card-color);
    box-shadow: 
        8px 8px 16px rgba(174, 174, 192, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 
        4px 4px 8px rgba(174, 174, 192, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.8),
        inset 2px 2px 4px rgba(174, 174, 192, 0.2),
        inset -2px -2px 4px rgba(255, 255, 255, 0.4);
}

.search-type {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--card-color);
    box-shadow: 
        5px 5px 10px rgba(174, 174, 192, 0.4),
        -5px -5px 10px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.radio-label:hover {
    box-shadow: 
        3px 3px 6px rgba(174, 174, 192, 0.4),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label input[type="radio"] + .radio-text {
    position: relative;
    padding-left: 25px;
}

.radio-label input[type="radio"] + .radio-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--card-color);
    box-shadow: 
        inset 2px 2px 4px rgba(174, 174, 192, 0.2),
        inset -2px -2px 4px rgba(255, 255, 255, 0.4);
}

.radio-label input[type="radio"]:checked + .radio-text::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: pulseRadio 1s infinite alternate;
}

@keyframes pulseRadio {
    0% {
        transform: translateY(-50%) scale(0.8);
    }
    100% {
        transform: translateY(-50%) scale(1.1);
    }
}

/* 流光溢彩按钮 */
.glow-button {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    background-size: 300% 300%;
    color: white;
    box-shadow: 
        5px 5px 10px rgba(174, 174, 192, 0.4),
        -5px -5px 10px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        8px 8px 16px rgba(174, 174, 192, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.9);
}

.glow-button:active {
    transform: translateY(1px);
    box-shadow: 
        3px 3px 6px rgba(174, 174, 192, 0.4),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

/* 结果容器 */
.results-container {
    background: var(--card-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        8px 8px 16px rgba(174, 174, 192, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

.results-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.1), rgba(0, 191, 255, 0.1));
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.results-body {
    max-height: 400px;
    overflow-y: auto;
}

.result-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.result-row:hover {
    background-color: var(--highlight-color);
}

.col {
    padding: 0 10px;
    text-align: center;
}

/* 滚动条样式 */
.results-body::-webkit-scrollbar {
    width: 8px;
}

.results-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.results-body::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .glass-header h1 {
        font-size: 2rem;
    }
    
    .glass-header p {
        font-size: 1rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .glow-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .glass-header h1 {
        font-size: 1.5rem;
    }
    
    .results-header, .result-row {
        font-size: 0.9rem;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid rgba(138, 43, 226, 0.3);
    border-top-color: var(--primary-color);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 无结果提示 */
.no-results {
    padding: 30px;
    text-align: center;
    color: #666;
}